package com.lxh.test2maven.dao;

import com.lxh.test2maven.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmpDao {

   List<Emp> getAll();

   Emp getByNameAndPwd(@Param("ename")String ename,@Param("pwd")String pwd);

   int addEmp(Emp emp);

   int updataEmp(Emp emp);

   int delEmp(@Param("eno") int eno);

   int updataEmpSex(@Param("eno")int eno,@Param("sex")String sex);

   List<Emp> getEmpByKey(@Param("ename")String ename);

   Long getCount();
}
